package com.example.testgit.mapstruct;

import com.example.testgit.VO.DormitoryRoomieVO;
import com.example.testgit.entity.StudentDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface DormitoryRoomieConverter {
    DormitoryRoomieConverter INSTANCE = Mappers.getMapper(DormitoryRoomieConverter.class);

    DormitoryRoomieVO toVO(StudentDO studentDO);

    List<DormitoryRoomieVO> toVOList(List<StudentDO> studentDOList);
}
